package com.loong.common.enumerate;

public enum ResultCode {

    SUCCESS(1, "SUCCESS"),
    DATA_ERROR(9, "数据错误"),
    RPC_ERROR(11, "内部服务错误,请联系系统管理员处理"),
    DUBBO_SERVICE_ERROR(10, "内部RPC服务错误,请联系管理员检查服务"),
    TOOMANY_REQUEST(429, "请求频率太高"),
    FAIL_DEFAULT(501, "未知错误"),
    SERVER_ERROR(500, "服务器错误"),
    PARAM_ERROR(1001, "参数错误"),
    BATCH_ERROR(1002, "批量操作错误"),
    UNAUTHORIZED(401, "签名错误"),
    TOEKNUNVALIBLE(405, "登录失效"),
    AUTHUNVALIBLE(403, "权限不足"),
    MOBILE_EXIST(100, "手机号码已存在"),
    MOBILE_VALIDATE_NOT_EXIST(101, "短信验证码不正确或已过期"),
    USER_PASSWORD_ERROR(102, "帐号密码错误"),
    NECP_VALIDATE_ERROR(103, "行为验证错误"),
    EMAIL_EXIST(104, "邮箱账号已存在"),
    USER_NAME_NOT_EXIST(105, "用户名不存在"),
    PASSWOWRD_WRONG(106, "用户密码错误"),
    MOBILE_NOT_EXIST(107, "手机号码不存在"),
    EMAIL_NOT_EXIST(108, "邮箱账号不存在"),
    QCHAT_ID_EXIST(109, "用户id已存在"),
    QCHAT_ID_ERROR(110, "千音号格式有误"),
    EMAIL_SEND(110, "已发送邮件,请查看邮箱"),
    EMAIL_OVERDUE(111, "邮箱已过期，请重发邮件"),
    ROLENAME_EXIST(112, "角色名称已存在"),
    ADMINNAME_EXIST(113, "管理员名称已存在"),
    MOBILE_ISERROR(114, "手机号码有误"),
    DOMAIN_EXIST(115, "域名已存在"),
    MOBILE_ERROR(20035, "手机号格式错误"),
    EMAIL_ERROR(20036, "邮箱账号格式错误"),
    USER_INFO_HIDE(30001, "用户隐藏了个人信息"),
    ACCESS_ERROR(40001, "ip访问受限"),
    KICKED_OUT(40002, "被踢出"),
    ILLEGAL_REQUEST(406, "非法请求"),
    EXISTS_RESOURCE(1111,"存在资源，不能删除"),
    NO_STOCK(2222,"库存不足"),
    SKU_PRICE_UPDATE(3333,"商品单价发生变化"),
    CASH_ON_DELIVERY_EXCESS(4444,"单笔订单应付金额不能大于500"),
    CASH_ON_DELIVERY_COUNT(5555,"累计未完成订单数量不能大于5笔"),
    CASH_ON_DELIVERY_PAYMENT_NUM(6666,"累计未完成订单金额不能大于1000")
    ;

    private int code;
    private String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
